package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class LoanDemands {
    private Integer id;
    private Long applyId;
    private Integer serviceDemandId;
    private Date createDt;
    private Date updateDt;
    private String demandName;
    

	public String getDemandName() {
		return demandName;
	}

	public void setDemandName(String demandName) {
		this.demandName = demandName;
	}

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Integer getServiceDemandId() {
        return serviceDemandId;
    }

    public void setServiceDemandId(Integer serviceDemandId) {
        this.serviceDemandId = serviceDemandId;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof LoanDemands)) {
            return false;
        }
        LoanDemands other = (LoanDemands) that;
        return this.getId() == null ? other == null : this.getId().equals(other.getId())
            && this.getApplyId() == null ? other == null : this.getApplyId().equals(other.getApplyId())
            && this.getServiceDemandId() == null ? other == null : this.getServiceDemandId().equals(other.getServiceDemandId())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getId() != null) {
            hash *= getId().hashCode();
        }
        if (getApplyId() != null) {
            hash *= getApplyId().hashCode();
        }
        if (getServiceDemandId() != null) {
            hash *= getServiceDemandId().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        return hash;
    }
}